package com.example.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.mapper.UserMapper;
import com.example.pojo.User;
import com.example.service.UserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @author yangjicong
 * @date 2022/3/3
 */
@Service
@Slf4j
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {

	/**
	 * app端登录
	 *
	 * @return
	 * @param id
	 */
	@Override
	public User getUser(Integer id) {
		log.info("开始查询数据库");
		User byId = this.getById(id);
		log.info("数据库查询结果{}",byId);
		return byId;
	}
}
